package com.zs.batch.listener;

import org.springframework.stereotype.Component;

/**
 * @author lanyuping
 * @date 2022/11/03 14:55
 */
@Component
public class SkipListener implements org.springframework.batch.core.SkipListener {
    @Override
    public void onSkipInRead(Throwable throwable) {
        System.out.println("读的时候发生错误");
    }

    @Override
    public void onSkipInWrite(Object o, Throwable throwable) {
        System.out.println("写的时候发生错误");
    }

    @Override
    public void onSkipInProcess(Object o, Throwable throwable) {
        System.out.println("处理的时候发生错误");
    }
}
